home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
CDICTION
/
CSMARTBA.C
< prev
next >
Wrap
Text File
|
1989-09-15
|
1KB
|
58 lines
/*****************************************************************************
CSmartBartender.c
see header for more information
SUPERCLASS = CBartender
*****************************************************************************/
#include "CSmartBartender.h"
/*****************************************************************************/
void CSmartBartender::ISmartBartender(Int16 MBARid)
{
CBartender::IBartender( MBARid);
} /* CSmartBartender::ISmartBartender */
/*****************************************************************************/
void CSmartBartender::DisableAllMenus( void)
{
register MenuEntryP theEntry;
register Int32 i;
register Int16 theID;
HLock( theMenus);
theEntry = *theMenus;
for (i = 0; i < numMenus; i++)
{
theID = theEntry[i].MENUid;
if (theID < 100)
DisableItem( GetMHandle(theID), 0);
}
HUnlock( theMenus);
DrawMenuBar();
} /* CSmartBartender::DisableAllMenus */
/*****************************************************************************/
void CSmartBartender::EnableAllMenus( void)
{
register MenuEntryP theEntry;
register Int32 i;
register Int16 theID;
HLock( theMenus);
theEntry = *theMenus;
for (i = 0; i < numMenus; i++)
{
theID = theEntry[i].MENUid;
if (theID < 100)
EnableItem( GetMHandle(theID), 0);
}
HUnlock( theMenus);
DrawMenuBar();
} /* CSmartBartender::EnableAllMenus */
/*****************************************************************************/